package com.hbxx.lotteryapp.controller;


import com.hbxx.lotteryapp.commons.ApiIdempotent;
import com.hbxx.lotteryapp.commons.Result;
import com.hbxx.lotteryapp.service.IRechargeRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  彩票充值前端控制器
 * </p>
 *
 * @author jsonT
 * @since 2022-06-07
 */
@RestController
@RequestMapping("/rechargeRecord")
public class RechargeRecordController {

    @Resource
    private IRechargeRecordService rechargeRecordService;

    /**
     * 充值记录分页查询
     * @param pageNum
     * @param pageSize
     * @param request
     * @return
     */
    @ApiIdempotent
    @GetMapping("queryPage")
    public Result queryRechargePage(Integer pageNum, Integer pageSize, HttpServletRequest request){
        return rechargeRecordService.queryRechargePage(pageNum,pageSize,request);
    }

}

